/***
 * @description address model
 * @author zhang
 */

const mongoose = require('../db/db')

const Schema = mongoose.Schema({ // 地址
    username: {
        type: String,
        required: true
    },
    city: String,
    department: String,
    houseNumber: String,
    name: String,
    phone: String
}, { timestamps: true })

const Address = mongoose.model('address', Schema)

module.exports = Address